package com.google.code.virtualhockey.vhx.shared.rpc.helper;

import com.google.code.virtualhockey.vhx.shared.VhxSharedUtils;
import com.google.code.virtualhockey.vhx.shared.rpc.ISecurityTokenProvider;
import com.google.gwt.user.client.Cookies;

/**
 * Provides security tokens by using the Google App Engine (GAE) session cookie.
 */
public class GaeSecurityTokenProvider implements ISecurityTokenProvider
{
  /**
   * @see ISecurityTokenProvider#getClientSecurityToken()
   */
  public String getClientSecurityToken()
  {
    return Cookies.getCookie( VhxSharedUtils.SESSION_COOKIE );
  }
}
